package com.ssm.design.chain.handler.v3;

import com.ssm.design.chain.context.OrderHandleContextV3;
import com.ssm.design.common.enums.OrderFlowEnum;
import com.ssm.design.common.enums.OrderTypeEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;

@Slf4j
@Service
@Order(100)
public class CreateOrderHandler extends AbstractOrderHandlerV3 {

    @Override
    protected OrderTypeEnum getTypeEnum() {
        return null;
    }

    @Override
    public void doHandle(OrderHandleContextV3 context, Object... args) {
        log.info("default create order ... ");

        lockSku(context, args);
    }

    /**
     * 商品锁定
     *
     * @param context
     * @param args
     */
    protected void lockSku(OrderHandleContextV3 context, Object[] args) {
        log.info("default create order deal detail ... ");
    }
}
